import Vue from 'vue'
import Weui from 'weui'
import VueForm from 'vue-form'

import App from './App'
import router from './router'
import store from './store'
import 'promise'
require('es6-promise').polyfill()

import './iocns'
import './promission'
import Tolast from '@/utils/tolast'
import Loading from '@/utils/loading'

Vue.use(Weui)
Vue.use(VueForm)
Vue.use(Loading)

Vue.config.productionTip = false
Vue.prototype.$weui = require('weui.js')
Vue.prototype.$toast = Tolast


new Vue({
	el: '#app',
	router,
	store,
	template: '<App/>',
	components: {
		App
	}
})
